<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.dic.service.WorddictionaryService"%>
<%@ page import="com.dic.dao.*"%>
<%@ page import="com.dic.dao.model.*"%>

<%
   request.setCharacterEncoding("UTF-8");
   response.setCharacterEncoding("UTF-8");
   
   String subject=request.getParameter("subject");
   String compiler=request.getParameter("compiler").trim();
   
   HashMap<String,String> hm1=new HashMap<String,String>();
   hm1.put("subject", subject);
   hm1.put("compiler", compiler);
   hm1.put("status", "已完成");
   HashMap<String,String> hm2=new HashMap<String,String>();
   hm2.put("subject", subject);
   hm2.put("compiler", compiler);
   hm2.put("status", "存在疑问");
   HashMap<String,String> hm3=new HashMap<String,String>();
   hm3.put("subject", subject);
   hm3.put("compiler", compiler);
   hm3.put("status", "未完成");
   HashMap<String,String> hm4=new HashMap<String,String>();
   hm4.put("subject", subject);
   hm4.put("compiler", compiler);
   hm4.put("ispass", "未通过");
   HashMap<String,String> hm5=new HashMap<String,String>();
   hm5.put("subject", subject);
   hm5.put("compiler", compiler);
   hm5.put("ispass", "未审查");
   
   WorddictionaryService ser = new WorddictionaryService();
   List<String> finishedlist=ser.getFinishWordList(hm1);
   List<String> doubtlist=ser.getFinishWordList(hm2);
   List<String> unfinishedlist=ser.getFinishWordList(hm3);
   List<String> unpass=ser.getPassWordList(hm4);
   List<String> unchecked=ser.getPassWordList(hm5);
   
   out.print("{'finishedlist':'"+finishedlist+"','doubtlist':'"+doubtlist+"','unfinishedlist':'"+unfinishedlist+"','unpass':'"+unpass+"','unchecked':'"+unchecked+"'}");
   
%>